package com.example.demo.common;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "douyin")
@Data
public class DouyinConfig {
    String AppId;
    /**
     * 正式地址：https://developer.toutiao.com/api/apps/v2/jscode2session
     * 沙盒地址：https://open-sandbox.douyin.com/api/apps/v2/jscode2session
     */
    String Url;
//    String Url="https://developer.toutiao.com/api/apps/v2/jscode2session";
    String Secret;
}
